Nomarl mode command | scrapVim
ScrapVimのnomarl modeのコマンド群
コマンドの実装
scrapbox-keyboard-emulationとscrapboxのcursorの位置を計算するを用いる
motion (vim)
hjkl
code:nomalMode.js
export class NormalMode {
// 引数からemulatorとcursor計算classのinstanceを受け取る
constructor() {
this.commands = {
left: ()=>{}
down: ()=>{}
up: ()=>{}
right: ()=>{}
^0$
code:nomalMode.js
home: () => {}
startOfLine: () => {} // ^
end: () => {}
gg
G
wWbBeE
ge
gE
(){}
%HML
f{char}
operator command (vim)
レジスタ、motionを指定した状態で実行する
d
y
c
p
~
<>
code:nomalMode.js
};
}
#2020-11-15 20:16:27